package com.woniuxy.carlife.carlifeuserweb.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author zjq
 * @ClassName:UserInfoController
 * @Description:收货地址
 * @date 2021/4/6 20:02
 **/

@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("t_shippingaddress")
@ApiModel(value="Shippingaddress对象", description="")
public class Shippingaddress implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty(value = "收货地址id")
        @TableId(value = "shippingaddress_id", type = IdType.AUTO)
      private Integer shippingaddressId;

      @ApiModelProperty(value = "用户id")
      private Integer userId;

      @ApiModelProperty(value = "收货地址表收货人名字")
      private String shippingaddressName;

      @ApiModelProperty(value = "收货地址表收货人电话")
      private String shippingaddressPhone;

    private Integer provinceId;

      @ApiModelProperty(value = "省")
      private String provinceName;

    private Integer cityId;

      @ApiModelProperty(value = "市")
      private String cityName;

    private Integer regionId;

      @ApiModelProperty(value = "区")
      private String regionName;

      @ApiModelProperty(value = "收货地址表收货的详细地址")
      private String shippingaddressAddress;

      @ApiModelProperty(value = "默认地址 0/1 （1为默认地址）")
      private Integer shippingaddressDefault;

      @ApiModelProperty(value = "创建时间")
        @TableField(fill = FieldFill.INSERT)
      private Date gmtCreate;

      @ApiModelProperty(value = "修改时间")
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date gmtModified;


}
